<script>
window.addEventListener('scroll', function () {
	setTimeout(function(){
		  var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
		 if(scrollTop > window.innerHeight){
			if(!scope.showgotop){
				scope.showgotop = true;  //状态标记
				scope.$evalAsync();
			}
		 }else{
			if(scope.showgotop){
				scope.showgotop = false;  //状态标记
				scope.$evalAsync();
			}
		 }
		 
		 if(scrollTop > 140){
			if(!scope.showtopheader){
				scope.showtopheader = true;  //状态标记
				scope.$evalAsync();
			}
		 }else{
			if(scope.showtopheader){
				scope.showtopheader = false;  //状态标记
				scope.$evalAsync();
			}
		 }
	 },200);
})
</script>
<div ng-if="showgotop" class="fe-floatright-bottom" style="bottom:3rem" onclick="window.scrollTo('0','0')">
	<i class="icon icon-zhiding" style="color:#999;font-size:1.6rem"></i>
</div>